﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeBehind="EditUser.aspx.cs" Inherits="Microsoft.CloudSaver.Web.Admin.EditUser" %>

<asp:Content ID="Content3" ContentPlaceHolderID="TitlePlaceHolder" runat="server">Edit user
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="SheetContentPlaceHolder" runat="server"> 
    <div style="text-align:center">
        <br />
        
            <table style="width:100%;margin:0 auto;">
                
                <tr>
                    <td valign="top">
                        <fieldset>
                            <legend>
                                 <asp:Label ID="lblHead" runat="server" Text="Modifica dell'utente {0}" 
                            Width="100%"></asp:Label></legend>
                            <br />
                            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                <ContentTemplate>
                                    <table>
                                        <tr>
                                            <td class="modalTd">
                                                <asp:Label ID="Label2" runat="server" Text="Password:"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtPassword" runat="server" Width="200px" TextMode="Password" 
                                                    MaxLength="20"></asp:TextBox>
                                            </td>
                                            <td>
                                        &nbsp;</td>
                                        </tr>
                                        <tr>
                                            <td class="modalTd">
                                                <asp:Label ID="Label3" runat="server" Text="Abilitato:"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:CheckBox ID="chkEnabled" runat="server" />
                                            </td>
                                            <td>
                                        &nbsp;</td>
                                        </tr>
                                        <tr>
                                            <td class="modalTd">
                                                <asp:Label ID="Label4" runat="server" Text="Email"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtEmail" runat="server" Width="200px" MaxLength="100"></asp:TextBox>
                                                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                                            ControlToValidate="txtEmail" ErrorMessage="Non valida" 
                                            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                                            </td>
                                            <td>
                                        &nbsp;</td>
                                        </tr>
                                        <tr>
                                            <td class="modalTd">
                                                <asp:Label ID="Label5" runat="server" Text="Ruolo"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:RadioButtonList ID="optRoles" runat="server" RepeatDirection="Horizontal">
                                                    <asp:ListItem>Admin</asp:ListItem>
                                                    <asp:ListItem>User</asp:ListItem>
                                                </asp:RadioButtonList>
                                            </td>
                                            <td>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="modalTd">
                                        &nbsp;</td>
                                            <td>
                                            </td>
                                            <td>
                                                <asp:ImageButton ID="cmdDone" runat="server" 
                                            ImageUrl="~/Objects/Images/Floppy-32.png" onclick="cmdDone_Click" />
                                            </td>
                                        </tr>
                                    </table>
                                </ContentTemplate>
                            </asp:UpdatePanel>
                            <br />
                        </fieldset>
                    </td>
                </tr>
            </table>
       
    </div>
 
</asp:Content>
